.class public Lcom/htc/android/footprints/view/GpsUpdatePanel;
.super Landroid/widget/LinearLayout;
.source "GpsUpdatePanel.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;
    }
.end annotation


# static fields
.field private static final DELAY_TIME_LONG:J = 0x1388L

.field private static final DELAY_TIME_SHORT:J = 0x7d0L

.field private static final HANDLE_INPUT_CHECK:I = 0xa

.field private static final TAG:Ljava/lang/String; = "GpsUpdatePanel"


# instance fields
.field private doUpdate:Landroid/view/View$OnClickListener;

.field private gpsEnabled:Z

.field private isIgnoreEditChange:Z

.field private mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

.field private mDegE:Landroid/widget/EditText;

.field private mDegN:Landroid/widget/EditText;

.field private mFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private mGpsE:Landroid/widget/Button;

.field private mGpsN:Landroid/widget/Button;

.field private final mHandler:Landroid/os/Handler;

.field private mMinE:Landroid/widget/EditText;

.field private mMinN:Landroid/widget/EditText;

.field private mSecE1:Landroid/widget/EditText;

.field private mSecE2:Landroid/widget/EditText;

.field private mSecN1:Landroid/widget/EditText;

.field private mSecN2:Landroid/widget/EditText;

.field private mTimeStamp:J

.field private showAlert:Landroid/view/View$OnClickListener;

.field textWatcher:Landroid/text/TextWatcher;

.field private updateButton:Landroid/widget/ImageView;

.field private updateRequired:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3
    .parameter "context"
    .parameter "attrs"

    .prologue
    const/4 v2, 0x0

    const/4 v0, 0x0

    .line 65
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 32
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    .line 33
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    .line 34
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    .line 35
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    .line 36
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    .line 37
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    .line 38
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    .line 39
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    .line 40
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    .line 41
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    .line 42
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 43
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

    .line 49
    iput-boolean v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->isIgnoreEditChange:Z

    .line 50
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mTimeStamp:J

    .line 51
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->gpsEnabled:Z

    .line 52
    iput-boolean v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateRequired:Z

    .line 142
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$3;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$3;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->doUpdate:Landroid/view/View$OnClickListener;

    .line 150
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$4;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$4;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->showAlert:Landroid/view/View$OnClickListener;

    .line 523
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$5;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$5;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    .line 556
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$6;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$6;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mHandler:Landroid/os/Handler;

    .line 66
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->initView()V

    .line 67
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 3
    .parameter "context"
    .parameter "isEditable"

    .prologue
    const/4 v2, 0x0

    const/4 v0, 0x0

    .line 60
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 32
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    .line 33
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    .line 34
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    .line 35
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    .line 36
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    .line 37
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    .line 38
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    .line 39
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    .line 40
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    .line 41
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    .line 42
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 43
    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

    .line 49
    iput-boolean v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->isIgnoreEditChange:Z

    .line 50
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mTimeStamp:J

    .line 51
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->gpsEnabled:Z

    .line 52
    iput-boolean v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateRequired:Z

    .line 142
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$3;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$3;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->doUpdate:Landroid/view/View$OnClickListener;

    .line 150
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$4;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$4;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->showAlert:Landroid/view/View$OnClickListener;

    .line 523
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$5;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$5;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    .line 556
    new-instance v0, Lcom/htc/android/footprints/view/GpsUpdatePanel$6;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$6;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    iput-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mHandler:Landroid/os/Handler;

    .line 61
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->initView()V

    .line 62
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/widget/Button;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method static synthetic access$1000(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$1100(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    invoke-direct {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->checkEditText()Z

    move-result v0

    return v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

    return-object v0
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/widget/Button;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$402(Lcom/htc/android/footprints/view/GpsUpdatePanel;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 29
    iput-boolean p1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateRequired:Z

    return p1
.end method

.method static synthetic access$500(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Landroid/content/Context;
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/view/GpsUpdatePanel;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 29
    iget-boolean v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->isIgnoreEditChange:Z

    return v0
.end method

.method private checkEditText()Z
    .locals 10

    .prologue
    const/16 v7, 0x3b

    const-string v9, "59"

    const-string v8, "00"

    .line 457
    const/4 v0, 0x1

    .line 458
    .local v0, result:Z
    invoke-direct {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->checkEmpty()V

    .line 460
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 461
    .local v1, valueDeg:I
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    .line 462
    .local v2, valueMin:I
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    .line 463
    .local v3, valueSec1:I
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    .line 466
    .local v4, valueSec2:I
    const/16 v5, 0x59

    if-le v1, v5, :cond_0

    .line 467
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    const-string v6, "89"

    invoke-virtual {v5, v6}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 468
    const/4 v0, 0x0

    .line 472
    :cond_0
    if-le v2, v7, :cond_1

    .line 473
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    const-string v6, "59"

    invoke-virtual {v5, v9}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 474
    const/4 v0, 0x0

    .line 478
    :cond_1
    if-le v3, v7, :cond_2

    .line 479
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    const-string v6, "59"

    invoke-virtual {v5, v9}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 480
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    const-string v6, "00"

    invoke-virtual {v5, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 481
    const/4 v0, 0x0

    .line 484
    :cond_2
    if-ne v3, v7, :cond_3

    if-eqz v4, :cond_3

    .line 485
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    const-string v6, "00"

    invoke-virtual {v5, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 486
    const/4 v0, 0x0

    .line 489
    :cond_3
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    .line 490
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    .line 491
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    .line 492
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    invoke-virtual {v5}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    .line 495
    const/16 v5, 0xb3

    if-le v1, v5, :cond_4

    .line 496
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    const-string v6, "179"

    invoke-virtual {v5, v6}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 497
    const/4 v0, 0x0

    .line 501
    :cond_4
    if-le v2, v7, :cond_5

    .line 502
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    const-string v6, "59"

    invoke-virtual {v5, v9}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 503
    const/4 v0, 0x0

    .line 507
    :cond_5
    if-le v3, v7, :cond_6

    .line 508
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    const-string v6, "59"

    invoke-virtual {v5, v9}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 509
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    const-string v6, "00"

    invoke-virtual {v5, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 510
    const/4 v0, 0x0

    .line 513
    :cond_6
    if-ne v3, v7, :cond_7

    if-eqz v4, :cond_7

    .line 514
    iget-object v5, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    const-string v6, "00"

    invoke-virtual {v5, v8}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 515
    const/4 v0, 0x0

    .line 518
    :cond_7
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->invalidate()V

    .line 519
    const-string v5, "GpsUpdatePanel"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "checkEditText = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 520
    return v0
.end method

.method private checkEmpty()V
    .locals 3

    .prologue
    const-string v2, "0"

    .line 429
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_0

    .line 430
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 432
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_1

    .line 433
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 435
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_2

    .line 436
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 438
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_3

    .line 439
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 442
    :cond_3
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_4

    .line 443
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 445
    :cond_4
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_5

    .line 446
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 448
    :cond_5
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_6

    .line 449
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 451
    :cond_6
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->length()I

    move-result v0

    if-nez v0, :cond_7

    .line 452
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    const-string v1, "0"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 454
    :cond_7
    return-void
.end method

.method private checkLatitudeLongitude()V
    .locals 2

    .prologue
    .line 411
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v0, :cond_0

    .line 412
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    if-gez v0, :cond_1

    .line 413
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    const v1, 0x7f0a000d

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 419
    :goto_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    if-gez v0, :cond_2

    .line 420
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    const v1, 0x7f0a000e

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 426
    :cond_0
    :goto_1
    return-void

    .line 416
    :cond_1
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    const v1, 0x7f0a000b

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    goto :goto_0

    .line 423
    :cond_2
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    const v1, 0x7f0a000c

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    goto :goto_1
.end method

.method private reset()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    const-string v2, "00"

    .line 190
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 191
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 192
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 193
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 194
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 195
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 196
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 197
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    const-string v1, "00"

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 198
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v0, :cond_0

    .line 199
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iput v3, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 200
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iput v3, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 202
    :cond_0
    return-void
.end method

.method private setTextWatcher()V
    .locals 2

    .prologue
    .line 322
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 323
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 324
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 325
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 327
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 328
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 329
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 330
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 331
    return-void
.end method

.method private switchEditable(Z)V
    .locals 1
    .parameter "editable"

    .prologue
    .line 307
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 308
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 309
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 310
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 312
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 313
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 314
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 315
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 317
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setEnabled(Z)V

    .line 318
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    invoke-virtual {v0, p1}, Landroid/widget/Button;->setEnabled(Z)V

    .line 319
    return-void
.end method


# virtual methods
.method public getLocation()[I
    .locals 3

    .prologue
    .line 303
    const/4 v0, 0x2

    new-array v0, v0, [I

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    aput v2, v0, v1

    const/4 v1, 0x1

    iget-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    aput v2, v0, v1

    return-object v0
.end method

.method initView()V
    .locals 4

    .prologue
    .line 70
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "layout_inflater"

    invoke-virtual {v2, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 72
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v2, 0x7f030010

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    .line 74
    .local v1, layout:Landroid/view/ViewGroup;
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->addView(Landroid/view/View;)V

    .line 76
    const v2, 0x7f0c004c

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    .line 77
    const v2, 0x7f0c004d

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    .line 78
    const v2, 0x7f0c004e

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    .line 79
    const v2, 0x7f0c004f

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    .line 81
    const v2, 0x7f0c0051

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    .line 82
    const v2, 0x7f0c0052

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    .line 83
    const v2, 0x7f0c0053

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    .line 84
    const v2, 0x7f0c0054

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    .line 86
    const v2, 0x7f0c0050

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    .line 87
    const v2, 0x7f0c0055

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    .line 89
    iget-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    new-instance v3, Lcom/htc/android/footprints/view/GpsUpdatePanel$1;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$1;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 111
    iget-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    new-instance v3, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel$2;-><init>(Lcom/htc/android/footprints/view/GpsUpdatePanel;)V

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 135
    invoke-direct {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->reset()V

    .line 136
    const v2, 0x7f0c0065

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateButton:Landroid/widget/ImageView;

    .line 137
    iget-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateButton:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->doUpdate:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 139
    invoke-direct {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->setTextWatcher()V

    .line 140
    return-void
.end method

.method public isUpdateRequired()Z
    .locals 1

    .prologue
    .line 205
    iget-boolean v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateRequired:Z

    return v0
.end method

.method public removeTextWatcher()V
    .locals 2

    .prologue
    .line 334
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 335
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 336
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 337
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 339
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 340
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 341
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 342
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->textWatcher:Landroid/text/TextWatcher;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 343
    return-void
.end method

.method public setData(Lcom/htc/android/footprints/vo/Footprint;)V
    .locals 3
    .parameter "f"

    .prologue
    .line 232
    iput-object p1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 233
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateEditData(Z)V

    .line 234
    const-string v0, "GpsUpdatePanel"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mFootptint = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 235
    return-void
.end method

.method public setGpsState(Z)V
    .locals 2
    .parameter "enabled"

    .prologue
    .line 213
    iput-boolean p1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->gpsEnabled:Z

    .line 214
    iget-boolean v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->gpsEnabled:Z

    if-eqz v0, :cond_0

    .line 215
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateButton:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->doUpdate:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 220
    :goto_0
    return-void

    .line 217
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateButton:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->showAlert:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 218
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateRequired:Z

    goto :goto_0
.end method

.method public setTrackingButtonClickable(Z)V
    .locals 1
    .parameter "flag"

    .prologue
    .line 223
    iget-object v0, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateButton:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 224
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->switchEditable(Z)V

    .line 225
    return-void
.end method

.method public setTrackingCallback(Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;)V
    .locals 0
    .parameter "callback"

    .prologue
    .line 228
    iput-object p1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mCallback:Lcom/htc/android/footprints/view/GpsUpdatePanel$PanelCallback;

    .line 229
    return-void
.end method

.method public setUpdateRequired(Z)V
    .locals 0
    .parameter "required"

    .prologue
    .line 209
    iput-boolean p1, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateRequired:Z

    .line 210
    return-void
.end method

.method public updateEditData(Z)V
    .locals 17
    .parameter "ignoreEditChage"

    .prologue
    .line 238
    move/from16 v0, p1

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/htc/android/footprints/view/GpsUpdatePanel;->isIgnoreEditChange:Z

    .line 239
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->updateButton:Landroid/widget/ImageView;

    move-object v13, v0

    invoke-virtual {v13}, Landroid/widget/ImageView;->requestFocus()Z

    .line 240
    invoke-direct/range {p0 .. p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->checkLatitudeLongitude()V

    .line 242
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v13, v0

    iget v13, v13, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    int-to-double v13, v13

    const-wide v15, 0x412e848000000000L

    div-double v2, v13, v15

    .line 243
    .local v2, lat:D
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v13, v0

    iget v13, v13, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    int-to-double v13, v13

    const-wide v15, 0x412e848000000000L

    div-double v6, v13, v15

    .line 244
    .local v6, lon:D
    const-string v13, "GpsUpdatePanel"

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    const-string v15, "mFootprint.mLatitude = "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v15, v0

    iget v15, v15, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 245
    const-string v13, "GpsUpdatePanel"

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    const-string v15, "mFootprint.mLongitude = "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v15, v0

    iget v15, v15, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 247
    const-wide/16 v13, 0x0

    cmpg-double v13, v2, v13

    if-gez v13, :cond_0

    .line 248
    const-wide/high16 v13, -0x4010

    mul-double/2addr v2, v13

    .line 250
    :cond_0
    const-wide/16 v13, 0x0

    cmpg-double v13, v6, v13

    if-gez v13, :cond_1

    .line 251
    const-wide/high16 v13, -0x4010

    mul-double/2addr v6, v13

    .line 257
    :cond_1
    const/4 v13, 0x2

    invoke-static {v2, v3, v13}, Landroid/location/Location;->convert(DI)Ljava/lang/String;

    move-result-object v5

    .line 258
    .local v5, latStr:Ljava/lang/String;
    const/4 v13, 0x2

    invoke-static {v6, v7, v13}, Landroid/location/Location;->convert(DI)Ljava/lang/String;

    move-result-object v9

    .line 259
    .local v9, lonStr:Ljava/lang/String;
    const-string v13, "GpsUpdatePanel"

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    const-string v15, "Location.convert, latStr = "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 260
    const-string v13, "GpsUpdatePanel"

    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    const-string v15, "Location.convert, lonStr = "

    invoke-virtual {v14, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v14

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v14

    invoke-static {v13, v14}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 263
    const-string v13, ":"

    invoke-virtual {v5, v13}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    .line 264
    .local v4, latArr:[Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x0

    aget-object v14, v4, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 265
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x1

    aget-object v14, v4, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 268
    const/4 v13, 0x2

    aget-object v13, v4, v13

    const-string v14, "\\."

    invoke-virtual {v13, v14}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v11

    .line 269
    .local v11, secStrN:[Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x0

    aget-object v14, v11, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 270
    array-length v13, v11

    const/4 v14, 0x2

    if-lt v13, v14, :cond_2

    .line 271
    const/4 v13, 0x1

    aget-object v13, v11, v13

    invoke-virtual {v13}, Ljava/lang/String;->length()I

    move-result v13

    const/4 v14, 0x2

    if-le v13, v14, :cond_4

    .line 272
    const/4 v13, 0x1

    aget-object v13, v11, v13

    const/4 v14, 0x0

    const/4 v15, 0x2

    invoke-virtual {v13, v14, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v12

    .line 273
    .local v12, tmpStr:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    move-object v13, v0

    invoke-virtual {v13, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 281
    .end local v12           #tmpStr:Ljava/lang/String;
    :cond_2
    :goto_0
    const-string v13, ":"

    invoke-virtual {v9, v13}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v8

    .line 282
    .local v8, lonArr:[Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x0

    aget-object v14, v8, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 283
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x1

    aget-object v14, v8, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 286
    const/4 v13, 0x2

    aget-object v13, v8, v13

    const-string v14, "\\."

    invoke-virtual {v13, v14}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v10

    .line 287
    .local v10, secStrE:[Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x0

    aget-object v14, v10, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 288
    array-length v13, v10

    const/4 v14, 0x2

    if-lt v13, v14, :cond_3

    .line 289
    const/4 v13, 0x1

    aget-object v13, v10, v13

    invoke-virtual {v13}, Ljava/lang/String;->length()I

    move-result v13

    const/4 v14, 0x2

    if-le v13, v14, :cond_5

    .line 290
    const/4 v13, 0x1

    aget-object v13, v10, v13

    const/4 v14, 0x0

    const/4 v15, 0x2

    invoke-virtual {v13, v14, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v12

    .line 291
    .restart local v12       #tmpStr:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    move-object v13, v0

    invoke-virtual {v13, v12}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 298
    .end local v12           #tmpStr:Ljava/lang/String;
    :cond_3
    :goto_1
    const/4 v13, 0x0

    move v0, v13

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/htc/android/footprints/view/GpsUpdatePanel;->isIgnoreEditChange:Z

    .line 299
    return-void

    .line 276
    .end local v8           #lonArr:[Ljava/lang/String;
    .end local v10           #secStrE:[Ljava/lang/String;
    :cond_4
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x1

    aget-object v14, v11, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 294
    .restart local v8       #lonArr:[Ljava/lang/String;
    .restart local v10       #secStrE:[Ljava/lang/String;
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    move-object v13, v0

    const/4 v14, 0x1

    aget-object v14, v10, v14

    invoke-virtual {v13, v14}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method public updateLocationFromEdit(Z)V
    .locals 12
    .parameter "forceUpdate"

    .prologue
    .line 346
    const-string v9, "GpsUpdatePanel"

    const-string v10, "updateLocationFromEdit"

    invoke-static {v9, v10}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 347
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-nez v9, :cond_1

    .line 408
    :cond_0
    :goto_0
    return-void

    .line 349
    :cond_1
    if-eqz p1, :cond_2

    .line 350
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mHandler:Landroid/os/Handler;

    const/16 v10, 0xa

    invoke-virtual {v9, v10}, Landroid/os/Handler;->hasMessages(I)Z

    move-result v9

    if-eqz v9, :cond_0

    .line 355
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mHandler:Landroid/os/Handler;

    const/16 v10, 0xa

    invoke-virtual {v9, v10}, Landroid/os/Handler;->removeMessages(I)V

    .line 356
    invoke-direct {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->checkEditText()Z

    .line 363
    :cond_2
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegN:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinN:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN1:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "."

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecN2:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 370
    .local v5, strLat:Ljava/lang/String;
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mDegE:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mMinE:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, ":"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE1:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "."

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mSecE2:Landroid/widget/EditText;

    invoke-virtual {v10}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 375
    .local v6, strLon:Ljava/lang/String;
    const-string v9, "GpsUpdatePanel"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "strLat = "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 376
    const-string v9, "GpsUpdatePanel"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "strLon = "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 377
    const-wide/16 v1, 0x0

    .line 378
    .local v1, lat:D
    const-wide/16 v3, 0x0

    .line 380
    .local v3, lon:D
    :try_start_0
    invoke-static {v5}, Landroid/location/Location;->convert(Ljava/lang/String;)D

    move-result-wide v1

    .line 381
    invoke-static {v6}, Landroid/location/Location;->convert(Ljava/lang/String;)D
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-wide v3

    .line 388
    const-string v9, "GpsUpdatePanel"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "convert double lat = "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 389
    const-string v9, "GpsUpdatePanel"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "convert double lon = "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10, v3, v4}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 390
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    const-wide v10, 0x412e848000000000L

    mul-double/2addr v10, v1

    double-to-int v10, v10

    iput v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 391
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    const-wide v10, 0x412e848000000000L

    mul-double/2addr v10, v3

    double-to-int v10, v10

    iput v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 393
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->getResources()Landroid/content/res/Resources;

    move-result-object v9

    const v10, 0x7f0a000d

    invoke-virtual {v9, v10}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v7

    .line 394
    .local v7, textS:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/htc/android/footprints/view/GpsUpdatePanel;->getResources()Landroid/content/res/Resources;

    move-result-object v9

    const v10, 0x7f0a000e

    invoke-virtual {v9, v10}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v8

    .line 396
    .local v8, textW:Ljava/lang/String;
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsN:Landroid/widget/Button;

    invoke-virtual {v9}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_3

    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    if-lez v9, :cond_3

    .line 398
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    mul-int/lit8 v10, v10, -0x1

    iput v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 400
    :cond_3
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mGpsE:Landroid/widget/Button;

    invoke-virtual {v9}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v9, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_4

    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v9, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    if-lez v9, :cond_4

    .line 402
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    mul-int/lit8 v10, v10, -0x1

    iput v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 405
    :cond_4
    iget-object v9, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    const/4 v10, 0x2

    iput v10, v9, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    .line 406
    const-string v9, "GpsUpdatePanel"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "latitude from edit = "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v11, v11, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 407
    const-string v9, "GpsUpdatePanel"

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "longitude from edit = "

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    iget-object v11, p0, Lcom/htc/android/footprints/view/GpsUpdatePanel;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v11, v11, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0

    .line 383
    .end local v7           #textS:Ljava/lang/String;
    .end local v8           #textW:Ljava/lang/String;
    :catch_0
    move-exception v9

    move-object v0, v9

    .line 384
    .local v0, e:Ljava/lang/IllegalArgumentException;
    const-string v9, "GpsUpdatePanel"

    const-string v10, "Location.convert fail"

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 385
    const-string v9, "GpsUpdatePanel"

    invoke-virtual {v0}, Ljava/lang/IllegalArgumentException;->getMessage()Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_0
.end method
